package org.jeecg.modules.veterans.service;

import org.jeecg.modules.system.entity.SysVeteranSta;
import org.jeecg.modules.system.vo.SysNameValueVo;
import org.jeecg.modules.veterans.entity.SysVeteransCard;
import org.jeecg.modules.veterans.entity.SysVeterans;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 退役军人信息表
 * @Author: jeecg-boot
 * @Date:   2022-03-27
 * @Version: V1.0
 */
public interface ISysVeteransService extends IService<SysVeterans> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(SysVeterans sysVeterans,List<SysVeteransCard> sysVeteransCardList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(SysVeterans sysVeterans,List<SysVeteransCard> sysVeteransCardList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public SysVeterans selectVeteransByPhone(String phone);

	public SysVeterans selectVeteransBySfzh(String sfzh);

    SysVeteranSta veteranSta();

	List<SysNameValueVo> veteranAgeSta();
}
